package com.outsider.model;

import java.io.Serializable;

public class Word implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 3320682666250257857L;
	private String english;
	private String chinese;
	private String pronunciation;

	public String getEnglish() {
		return english;
	}

	public void setEnglish(String english) {
		this.english = english;
	}

	public String getChinese() {
		return chinese;
	}

	public void setChinese(String chinese) {
		this.chinese = chinese;
	}

	public String getPronunciation() {
		return pronunciation;
	}

	public void setPronunciation(String pronunciation) {
		this.pronunciation = pronunciation;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		if (o instanceof Word) {
			Word temp = (Word) o;
			if (temp.getEnglish().equals(this.english) && temp.getChinese().equals(this.chinese)) {
				return true;
			}
		}
		return super.equals(o);
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return this.english.hashCode();
	}

}
